import { request } from 'umi';

export let LoginUser = (
    username : string, password : string, code : string, key: string, uuid : string )=>{
    return request( '/login' , {
        method : 'POST',
        data : {
            username : username,
            password : password,
            code : code,
            key,
            uuid : uuid
        }  
    });
}

export let LoginVerify=()=>{
    return request('/dev-api/captchaImage')
}

export let LoginOut = () =>{
    return request('logout');
}